package cn.iocoder.yudao.module.picturebook.controller.admin.classhomework.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 班级作业信息新增/修改 Request VO")
@Data
public class ClassHomeworkSaveReqVO {

    @Schema(description = "作业ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30434")
    private Long id;

    @Schema(description = "关联班级", requiredMode = Schema.RequiredMode.REQUIRED, example = "13594")
    @NotNull(message = "关联班级不能为空")
    private List<Long> classId;

    @Schema(description = "作业名称（如“07月08日作业”）", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "作业名称（如“07月08日作业”）不能为空")
    private String homeworkName;

    @Schema(description = "关联书籍（可多选，需用关联表扩展）", requiredMode = Schema.RequiredMode.REQUIRED, example = "20058")
    @NotEmpty(message = "关联书籍（可多选，需用关联表扩展）不能为空")
    private List<Long> bookId;

    @Schema(description = "任务类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "任务类型不能为空")
    private Integer Type;

    @Schema(description = "截止时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "截止时间不能为空")
    private LocalDateTime deadline;

    @Schema(description = "状态：1-未完成，2-已完成", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态：1-未完成，2-已完成不能为空")
    private Integer status;

}